package com.example.pattern.observer.impl;

import com.example.pattern.observer.Observer;

public class TaskOne implements Observer {

    private String taskName;

    public TaskOne(String taskName) {
        this.taskName = taskName;
    }

    @Override
    public void update(Object object) {
        System.out.println(this.taskName + " update : " + object);
    }
}
